# n = int(input())
# x = list(map(int, input().split()))
n = 3
x = [1, 7, 3]
x.sort()
for i in range(n - 1):
    for j in range(i + 1, n):
        if x[i] ^ x[j] < x[j]:  #
            x[j] = x[i] ^ x[j]
k = 0
for i in range(n):
    if x[i] != 0:
        k += 1
print(k)